package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * User: ycs
 * Date: 2020/9/2
 * Time: 16:40
 * Description: No Description
 *
 * @author: ycs
 */
@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 给服务签发token
     * @param id
     * @param secret
     * @return
     */
    @GetMapping("/authorization")
    public String authorization(@RequestParam("id") Long id , @RequestParam("secret") String secret);
}
